package com.example.cdctest.pojo;

import java.io.Serializable;
import java.util.Date;

public class Notice implements Serializable {
    private Integer id;

    /**
	* 图片上面编辑公告
	*/
    private String picture;

    /**
	* 标题
	*/
    private String title;

    /**
	* 内容
	*/
    private String content;

    /**
	* 发布管理员id
	*/
    private Admin admin;

    /**
	* 发布时间
	*/
    private Date time;

    /**
	* 1为使用，0为删除
	*/
    private Boolean enable;

    private Integer sort;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getPicture() {
        return picture;
    }

    public void setPicture(String picture) {
        this.picture = picture;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Admin getAdmin() {
        return admin;
    }

    public void setAdmin(Admin admin) {
        this.admin = admin;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public Boolean getEnable() {
        return enable;
    }

    public void setEnable(Boolean enable) {
        this.enable = enable;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", picture=").append(picture);
        sb.append(", title=").append(title);
        sb.append(", content=").append(content);
        sb.append(", adminId=").append(admin);
        sb.append(", time=").append(time);
        sb.append(", enable=").append(enable);
        sb.append(", sort=").append(sort);
        sb.append("]");
        return sb.toString();
    }
}